package Damod1;

import java.util.Scanner;

public class java1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        while(in.hasNextInt()){
            int n=in.nextInt();
            System.out.println(n);
        }
    }
    public static void main17(String[] args) {
        int n=1;
        do {
            System.out.print(n+" ");
            n++;
        }while(n<=10);
    }
    public static void main16(String[] args) {
        int n=1;
        int sum=0;
        for (int i = 1; i <=5 ; i++) {
            n*=i;
            sum+=n;
        }
        System.out.println(sum);
    }
    public static void main15(String[] args) {
        int sum=0;
        for (int i = 1; i <=100 ; i++) {
            sum+=i;
        }
        System.out.println(sum);
    }
    public static void main14(String[] args) {
        for (int i = 1; i <=10; i++) {
            System.out.println(i);
        }
    }
    public static void main13(String[] args) {
//        找到 100 - 200 中所有 3 的倍数。
        int n=100;
        for(n=100;n<=200;n++){
            if(n%3==0){
                System.out.println("100-200中所有3的倍数为" + n);
               continue;
            }
        }
    }
    public static void main12(String[] args) {
//        代码死循环
        int n=10;
        while (n==10){
            System.out.println("代码死循环");
        }
    }
    public static void main11(String[] args) {
//         计算 1! + 2! + 3! + 4! + 5!
        int sum=0;
        int n=1;
        int m=1;
        while (n<=5){
            m*=n;
            sum+=m;
            n++;
        }
        System.out.println(sum);
    }
    public static void main10(String[] args) {
//        计算5的阶层--5!=5x4x3x2x1
        Scanner in =new Scanner(System.in);
        int n=in.nextInt();
        int sum=1;
        while(n>0){
            sum*=n;
            n--;
        }
        System.out.println(sum);
    }
    public static void main9(String[] args) {
//        计算1——100的和
        int n=1;
        int sum=0;
        while(n<=100) {
            sum+=n;
            n++;
        }
        System.out.println(sum);
    }
    public static void main8(String[] args) {
        int num=1;
        while(num<=10){
            System.out.println(num);
            num++;
        }
    }

    public static void main7(String[] args) {
        int x = 1;
        int y = 1;
        switch(x) {
            case 1:
                switch(y) {
                    case 1:
                        System.out.println("hehe");
                        break;
                }
                break;
            case 2:
                System.out.println("haha");
                break;
        }
    }
    public static void main6(String[] args) {
         int num = 1;
        switch(num) {
            case 1:
                System.out.println("hehe");
                break;
            case 2:
                System.out.println("haha");
                break;
        }
    }
    public static void main5(String[] args) {
        int year = 2000;
        if (year % 100 == 0) {
// 判定世纪闰年
            if (year % 400 == 0) {
                System.out.println("是闰年");
            } else {
                System.out.println("不是闰年");
            }
        } else {
// 普通闰年
            if (year % 4 == 0) {
                System.out.println(year+"是闰年");
            } else {
                System.out.println(year+"不是闰年");
            }
        }
    }
    public static void main4(String[] args) {
        int num = 10;
        if (num > 0) {
            System.out.println("正数");
        } else if (num < 0) {
            System.out.println("负数");
        } else {
            System.out.println("0");
        }
    }
    public static void main3(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        if(n%2==0){
            System.out.println(n+"是偶数");
        }else {
            System.out.println(n+"是奇数");
        }
    }
    public static void main2(String[] args) {
        int score = 92;
        if(score >= 90){
            System.out.println("吃个大鸡腿!!!");
        }else{
            System.out.println("挨大嘴巴子!!!");
        }
    }
    public static void main1(String[] args) {
        int score = 92;
        if(score >= 90){
            System.out.println("吃个大鸡腿!!!");
        }
    }
}
